<template>
  <div>
    <div
      class="jftsmask"
      :style="{ height: clientHeight + 'px' }"
      ref="homePage" @click="closeTs()" @touchmove.prevent>
        <div class="nrts_kuang">
          <div class="nrts_kuang_tit">你要找的都在这里啦！</div>
          <img src=" https://o6wndwjxn.qnssl.com/%E5%8A%9F%E8%83%BD%E7%BB%84-%E5%BC%95%E5%AF%BC%E9%A1%B5@2x.png">
        </div>
    </div>
  </div>
</template>

<script>
export default {
  props: [''],
  data () {
    return {
      clientHeight: ''
    }
  },
  mounted () {
    // 获取浏览器可视区域高度
    this.clientHeight = `${document.documentElement.clientHeight}` // document.body.clientWidth;
    window.onresize = function temp () {
      this.clientHeight = `${document.documentElement.clientHeight}`
    }
  },
  watch: {
    clientHeight: function () {
      this.changeFixed(this.clientHeight)
    }
  },
  methods: {
    changeFixed (clientHeight) { // 动态修改样式
      // console.log(clientHeight)
      this.$refs.homePage.style.height = clientHeight + 'px'
    },
    closeTs (item) {
      // console.log('zujian')
      this.$emit('closeTs', false)
    }
  }
}

</script>
<style>
.jftsmask {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  z-index: 99999999999;
}
.nrts_zhuicon{
  width: 46px;
  height: 46px;
  position: fixed;
  bottom: 53px;
  right: 13px;
}
.nrts_jiantou{
  width: 52px;
  height: 75px;
  position: fixed;
  bottom: 79px;
  right: 58px;
}
.nrts_kuang{
  display: inline-block;
  left: 20px;
  width: 92%;
  margin: 0 auto;
  padding-bottom: 5px;
  border-radius: 5px;
  text-align: center;
  position: fixed;
  bottom: 34px;
}
.nrts_kuang_tit{
  font-family: PingFangSC-Light;
  font-size: 12px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #ffffff;
  padding-top: 11px;
  padding-bottom: 11px;
  margin-left: 15px;
  margin-right: 5px;
  text-align: left;
  padding-left: 18%;
}
.nrts_btn1{
  width: 90px;
  height: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  line-height: 25px;
  font-family: PingFangSC-Light;
  font-size: 11px;
  color: #666666;
  margin-left: 15px;
  margin-bottom: 11px;
}
.nrts_btn_img{
  width: 11px;
  height: 11px;
  margin-right: 7px;
  margin-bottom: 2px;
}
</style>
